package com.liangzhong.model.tourMatch
{
	import com.liangzhong.events.AppEventDispatcher;
	import com.liangzhong.events.NotifierEvent;
	import com.liangzhong.model.tourMatch.vo.TourMatchStatusVo;

	/**
	 *巡回赛管理  
	 * @author lake
	 * 
	 */	
	public class TourMatchManager
	{
		/**
		 *巡回赛状态 
		 */		
		public var tourMatchStatus :TourMatchStatusVo;
		/**
		 *当前报名等级 
		 */		
		public var curLevel		:int;
		
		public function TourMatchManager()
		{
			AppEventDispatcher.getInstance().addEventListener(NotifierEvent.MATCH_END,onMatchEnd);
		}
		/**
		 *比赛结束 
		 * @param e
		 * 
		 */		
		private function onMatchEnd(e :NotifierEvent):void
		{
			var cid :int = e.params.cid;
			if(tourMatchStatus && tourMatchStatus.isExistCid(cid))
			{
				tourMatchStatus.updateResult(e.params);
			}
		}
	}
}